{extend name="index/index" /}
{block name="main"}


{if condition = "$ses['vip'] eq 2"}
<img src="/static/index/img/vip_logo_2.png" width="48"> <img src="/uploads/{$ses.icon}" width="80"> <span style="color: darkviolet;">尊敬的会员：{$ses.name}</span>
{else/}
<img src="/uploads/{$ses.icon}" width="80"><span style="color: darkviolet;">尊敬的用户：{$ses.name}</span>
{/if}

<hr>
<div style="background-image: url('/static/index/img/daohangtiao.jpg');background-size:375px 650px;width: 375px;height: 650px;padding-left: 40px;padding-top: 40px">
    <form action="{:url('mobile/index/do_xiugai')}"  enctype="multipart/form-data" method="post">
        <input type="hidden" name="id" value="{$ses.id}">
        头像上传:
        <input type="file" name="image" value="{$ses.icon}">
        <br>
        <br>
        用户昵称:
        <input type="text" name="name" value="{$ses.name}" disabled >
        <br>
        <br>
        修改密码:
        <input type="password" name="pass" maxlength="11" >
        <br>
        <br>
        确认密码:
        <input type="password" name="repass" maxlength="11" >
        <br>
        <br>
        联系电话:
        <input type="text" name="tel" value="{$ses.tel}" maxlength="11">
        <br>
        <br>
        联系邮箱:
        <input type="email" name="email" value="{$ses.email}">
        <br>
        <br>
        选择性别:
        <select name="sex">
            {switch name="ses.sex"}
            {case value="1"}<option value="1" selected>男</option>
            <option value="2">女</option>{/case}
            {case value="2"}<option value="1">男</option>
            <option value="2" selected>女</option>{/case}
            {default /}<option value="1" selected>男</option>
            <option value="2">女</option>{/case}
            {/switch}
        </select>

        <br>
        <hr>
        <input type="submit">

    </form>


</div>



{/block}